$def with (p)
<!DOCTYPE html> 
<html>
  <head>
    <title>$p.title</title>
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.css" />
    <script src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.js"></script>
  </head>
  <body>
    <div data-role="page"> 
      $:p.header
	<div data-role="content" class="ui-content">
	    $for c in p.content:
		$:c
	</div> 

	<div data-role="footer">
	<h4>Page Footer</h4>
	</div> 
    </div> 
  </body>
</html>
